package com.ruoyi.project.warehouse.mapper;

import java.util.List;
import com.ruoyi.project.warehouse.domain.RyInventoryCurrentStock;

/**
 * 产品当前库存Mapper接口
 *
 * @author you
 * @date 2022-09-06
 */
public interface RyInventoryCurrentStockMapper
{
    /**
     * 查询产品当前库存
     *
     * @param id 产品当前库存主键
     * @return 产品当前库存
     */
    public RyInventoryCurrentStock selectRyInventoryCurrentStockById(Long id);

    public RyInventoryCurrentStock getCurrentStockByDepotInventId(RyInventoryCurrentStock rystock);

    /**
     * 查询产品当前库存列表
     *
     * @param ryInventoryCurrentStock 产品当前库存
     * @return 产品当前库存集合
     */
    public List<RyInventoryCurrentStock> selectRyInventoryCurrentStockList(RyInventoryCurrentStock ryInventoryCurrentStock);

    /**
     * 新增产品当前库存
     *
     * @param ryInventoryCurrentStock 产品当前库存
     * @return 结果
     */
    public int insertRyInventoryCurrentStock(RyInventoryCurrentStock ryInventoryCurrentStock);

    /**
     * 修改产品当前库存
     *
     * @param ryInventoryCurrentStock 产品当前库存
     * @return 结果
     */
    public int updateRyInventoryCurrentStock(RyInventoryCurrentStock ryInventoryCurrentStock);

    /**
     * 删除产品当前库存
     *
     * @param id 产品当前库存主键
     * @return 结果
     */
    public int deleteRyInventoryCurrentStockById(Long id);

    /**
     * 批量删除产品当前库存
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRyInventoryCurrentStockByIds(Long[] ids);
}
